package com.ruoyi.service.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维保合同对象 service_contract
 * 
 * @author yepanpan
 * @date 2025-05-06
 */
@Data
public class ServiceContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 区域 */
    @Excel(name = "区域")
    private String deptName;
    @NotNull
    private Long deptId;

    /** 合同类型 */
    @Excel(name = "合同类型", dictType="contract_type", comboReadDict=true)
    @NotNull
    private String type;

    /** 合同标题 */
    @Excel(name = "合同标题")
    @NotNull
    private String title;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date beginDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    @NotNull
    private Date endDate;

    /** 企业单位 */
    @Excel(name = "企业单位")
    private String company;

    /** 联系人 */
    @Excel(name = "联系人")
    private String linkman;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 状态 */
    @Excel(name = "状态", dictType="business_status", comboReadDict=true)
    private String status;

    /** 附件 */
    //@Excel(name = "附件")
    private String pdf;


}
